home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 March / Macworld (1998-03) (Disk 1).dmg / Shareware World / Info / For Developers / FatObjectPlant1.4.3 / Code Generation templates / C++Template.h < prev    next >
Text File  |  1997-09-07  |  2KB  |  35 lines

  1. // Code generated by Object Plant
  2.  
  3. {CLASS}
  4. #ifndef        __{CLASSNAME}
  5. #define        __{CLASSNAME}
  6. {ANCESTORLIST}"#include\t\""{ANCESTORNAME}".h\"\r#include\t\""{END}".h\""{/ANCESTORLIST}
  7. {USERCODE}
  8. {FILENAME}{SUBSYSTEM} ƒ:{/SUBSYSTEM}{CLASSNAME}.h{/FILENAME}
  9. "class\t"{CLASSNAME}{ABSTRACT}{ANCESTORLIST}" : public "{ANCESTORNAME}, {/ANCESTORLIST}{/ABSTRACT}
  10. {
  11. {PUBLIC}"\tpublic:"
  12. "\t\t// methods"
  13. "\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
  14.         {/OPERATION}
  15. "\t\t// attributes"
  16. "\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
  17.         {/ATTRIBUTE}{/PUBLIC}
  18. {PROTECTED}"\tprotected:"
  19. "\t\t// methods"
  20. "\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
  21.         {/OPERATION}
  22. "\t\t// attributes"
  23. "\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
  24.         {/ATTRIBUTE}{/PROTECTED}
  25. {PRIVATE}"\tprivate:"
  26. "\t\t// methods"
  27. "\t\t"{OPERATION}{STATIC}static {/STATIC}{OVERRIDE}virtual {/OVERRIDE}{RETURNTYPE}"\t"{NAME}({PARAMETER}" "{TYPE} {NAME}{DEFAULTVALUE}" = "{VALUE}{/DEFAULTVALUE}", "{END}" "{/PARAMETER}")"{CONST}" const"{/CONST}{ABSTRACT}" = 0"{/ABSTRACT};
  28.         {/OPERATION}
  29. "\t\t// attributes"
  30. "\t\t"{ATTRIBUTE}{STATIC}static {/STATIC}{TYPE}"\t"{NAME};
  31.         {/ATTRIBUTE}{/PRIVATE}
  32. };
  33. #endif
  34. {/CLASS}
  35.